home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_500 / wiconify / wiconify-source.lzh / Source / wHandler.h < prev    next >
C/C++ Source or Header  |  1991-04-19  |  2KB  |  98 lines

  1. /*
  2.  *  WICONIFY    A utility that allows you to iconify any Intuition window
  3.  *              on any screen, and to open WB windows on any screen.
  4.  *
  5.  *  wHandler.h  Contains the defitions needed by the handler.
  6.  *
  7.  *  Copyright 1990 by Davide P. Cervone, all rights reserved.
  8.  *  You may use this code, provided this copyright notice is kept intact.
  9.  */
  10.  
  11. #ifndef INTUITION_PREFERENCES_H
  12. #define INTUITION_PREFERENCES_H             /* don't need 'em */
  13. #include <intuition/intuition.h>
  14. #endif
  15. #include "wStructs.h"
  16. #include "wMemory.h"
  17.  
  18. #define ICONIFYTITLE    "wIconify v3.8"
  19. #define PROGRAM         "wIconify-Handler"
  20. #define VERSION         "v3.8"
  21. #define COPYRIGHT\
  22.    "wIconify Copyright (c) 1990 by Davide P. Cervone, all rights reserved"
  23.  
  24. /*
  25.  *  Iconify version
  26.  */
  27. #define MAJVERSION      3
  28. #define MINVERSION      8
  29.  
  30. /*
  31.  *  Minimum loader version
  32.  */
  33. #define MAJLOADVERS     1
  34. #define MINLOADVERS     3
  35.  
  36. /*
  37.  *  Minimum wIconCalls version
  38.  */
  39. #define MAJLIBVERS      1
  40. #define MINLIBVERS      3
  41.  
  42.  
  43. /*
  44.  *  Menu pen colors
  45.  */
  46. #define BACKGROUND      0
  47. #define HIGHLIGHT       1
  48. #define TEXTPEN         1
  49.  
  50.  
  51. /*
  52.  *  Some defaults for signals
  53.  */
  54. #define ONE     1L
  55. #define DEFAULTENDSIGNAL    SIGBREAKF_CTRL_C
  56. #define DEFAULTCLOSESIGNAL  SIGBREAKF_CTRL_F
  57.  
  58.  
  59. /*
  60.  *  Flags for wIconify backdrop windows
  61.  */
  62. #define IDCMPFLAGS\
  63.     MOUSEBUTTONS| GADGETDOWN| MENUPICK| ACTIVEWINDOW| INACTIVEWINDOW| VANILLAKEY
  64.  
  65.  
  66. /*
  67.  *  Identifies the messages sent to a window by wIconify
  68.  */
  69. #define FREECLASS       (CLOSEWINDOW| NEWSIZE)
  70.  
  71. #define SHIFTKEYS       (IEQUALIFIER_LSHIFT| IEQUALIFIER_RSHIFT)
  72.  
  73.  
  74.  
  75. /*
  76.  *  For defining a default color map
  77.  */
  78. #define NOCHANGE        99
  79. #define NOCOLOR         ((UWORD)-1)
  80.  
  81.  
  82. /*
  83.  *  Identifies the WB backdrop window
  84.  */
  85. #define WBFLAGS         (WBENCHWINDOW| BORDERLESS| BACKDROP)
  86. #define WBWIDTH         175         /* new size to make the WB window */
  87.  
  88.  
  89. /*
  90.  *  Looks up a WICONREF from a wGadget structure
  91.  */
  92. #define GADGETICON  ((WICONREF *)theGadget->Gadget.UserData)
  93. #define NOWINDOW        ((struct Window *)-1L)
  94.  
  95. #define NOTDONE     2
  96.  
  97. #include "wExtern.h"
  98.